dxp-ux

(0 reviews)

Delete PaymentMethod (TMF-670) towards SFDC

CASE 1 Unitary Test

URL
https://[localhost]:[port]/dxp-ux/v1/{businessId}/paymentmethod/{id}

Base URI Parameter

Note: JM, CR, PR, PA is Stub Implementation

NameTypeM/ODescription
businessIdstringMBusiness unit identifier. Example: ”PR”
IdStringMPayment method ID.

Headers

namevaluedescriptionrequired
X-Correlation-IDStringThis is a unique identifier for the current call chain that can be used to tie together log entries on multiple layers.
Example: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b
N
client_idStringThe client_id identifying the channel. Minimum
characters: 5
Y
client_secretStringThe client_id identifying the channel. Minimum
characters: 5
Y
cURL request
curl --location --request DELETE 'https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v4/PR/paymentMethod/2' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92cRR' \
--header 'client_id: 12345' \
--header 'client_secret: abcde' \
--header 'Content-Type: application/json' \
--data-raw '{
    "account": [
        {
            "id": "31516278-31514752",
            "@type": "BillingAccount",
            "relatedParty": [
                {
                    "id": "12401231232",
                    "@type": "msisdn"
                }
            ]
        }
    ],
    "relatedParty": [
        {
            "name": "Digital",
            "@type": "channel"
        }
    ]
}'
Definitions
NameTypeRequiredDescription
accountarrayYDescribes the account details
account.idstringY*Unique Identifier within the server for the payment method.
account.@typestringNDescribes the type of account
account.relatedPartyarrayY*Describes account related party
account.relatedParty.idstringY*Unique Identifier of the related party
account.relatedParty.@typestringNtype of the relatted party
relatedPartyarrayYDescribes related party
relatedParty.namestringYDescribes the name of related party
relatedParty.@typestringYDescribes the type of related party
[ 200 ]

OK

Response
{
    "status": 200,
    "description": "payment method delete request received"
}
Definitions
namevaluedescriptionrequired
statusnumberstatus code of the responseN
descriptionstringstatus description of the responseN

Reviews